package com.wgts.wgts.mvp.view.activity.homapge;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;

import com.wgts.wgts.R;
import com.wgts.wgts.netmodle.resp.AppModleEntity;
import com.wgts.wgts.netmodle.resp.ClassBannerEntity;
import com.wgts.wgts.tools.MoHuGlide;
import com.zhouwei.mzbanner.holder.MZViewHolder;

public class ClassBannerViewHolder implements MZViewHolder<ClassBannerEntity> {

    private ImageView imgBanner;

    @Override
    public View createView(Context context) {
        View view = LayoutInflater.from(context).inflate(R.layout.banner_view_holder, null);
        imgBanner = view.findViewById(R.id.img_banner);
        return view;
    }

    @Override
    public void onBind(Context context, int i, ClassBannerEntity classBannerEntity) {
        MoHuGlide.getInstance().raduice(context, classBannerEntity.bannerUrl, imgBanner);
    }
}
